import request from '@/utils/request'

// 查询演习数据列表
export function listActivedata(query) {
  return request({
    url: '/business/activedata/list',
    method: 'get',
    params: query
  })
}

// 查询演习数据详细
export function getActivedata(id) {
  return request({
    url: '/business/activedata/' + id,
    method: 'get'
  })
}

// 新增演习数据
export function addActivedata(data) {
  return request({
    url: '/business/activedata',
    method: 'post',
    data: data
  })
}

// 修改演习数据
export function updateActivedata(data) {
  return request({
    url: '/business/activedata',
    method: 'put',
    data: data
  })
}

// 删除演习数据
export function delActivedata(id) {
  return request({
    url: '/business/activedata/' + id,
    method: 'delete'
  })
}
